package com.scommunity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.scommunity.admin.vo.HouseQO;
import com.scommunity.domain.House;

import java.util.List;

public interface IHouseService extends IService<House> {
    PageInfo<House> findPageInfoByCondition(HouseQO houseQO, int pageNum, int pageSize);

    List<House> getAll();

    List<House> getAllByStatus();

    void add(House house);

    void update(House house);

    void del(String id);

    int getStatuseById(String id);

    List<House> getOwnerHouses(String id);

    void updateHouseStatusById(String id, String status);
}
